const app = getApp();
Component({
  data: {
    statusBarHeight: getApp().globalData.statusBarHeight
  },
  properties: {
    title: {
      type: String,
      value: '博士冲印',
    },
    otherIcon: {
      type: Boolean,
      value: false
    }
  },
  lifetimes: {
    attached: function () {

      let that = this;
      let otherIcon = that.data.otherIcon;
      let routeArray = getCurrentPages();
      if (otherIcon == false && routeArray.length <= 1) {
        that.setData({
          otherIcon: true
        })
      }
    },
  },
  methods: {
    backRoute: function () {
      wx.navigateBack();
    }
  }
})